﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="/Content/css/admin.css" rel="stylesheet" type="text/css" />
        <link href="/Content/css/common.css" rel="stylesheet" type="text/css" />
        <link href="/Content/css/jquery-ui-lightness/jquery-ui-1.8.9.custom.css" rel="stylesheet" type="text/css" />
        <title>Bast'infos Administration :: @ViewBag.Title</title>
    </head>
    <body>
    	<a name="haut" id="haut"></a>
        <div id="main_container">
        	<div id="header">
				Administration Bast's Infos
			</div>
			<div id="menu">
				<ul>
					<li class="selected"><a href="@Url.Action("Index", "Home")">Administration</a></li>
					<li>
						<a href="#" onclick="javascript:$('#subArticle').toggle(500);">Article</a>
						<ul class="sub" id="subArticle" style="display:@if (@Url.RequestContext.RouteData.Values["controller"] == "Article"){ <text>block;</text> }else{ <text>none;</text> }">
							<li><a href="@Url.Action("Index", "Article")">Liste des articles</a></li>
							<li><a href="@Url.Action("Create", "Article")">Cr&eacute;er un article</a></li>
							<li><a href="@Url.Action("Article", "Category")">Gestion des rubriques</a></li>
						</ul>
					</li>
					<li>
						<a href="#" onclick="javascript:$('#subEvent').toggle(500);">Evenement</a>
						<ul class="sub" id="subEvent" style="display:@if (@Url.RequestContext.RouteData.Values["controller"] == "Event"){ <text>block;</text> }else{ <text>none;</text> }">
							<li><a href="@Url.Action("Index", "Event")">Liste des evenements</a></li>
							<li><a href="@Url.Action("Create", "Event")">Cr&eacute;er un evenement</a></li>
							<li><a href="@Url.Action("Event", "Category")">Gestion des rubriques</a></li>
						</ul>
					</li>
					<li>
						<a href="#" onclick="javascript:$('#subPublication').toggle(500);">Publication</a>
						<ul class="sub" id="subPublication" style="display:@if (@Url.RequestContext.RouteData.Values["controller"] == "Publication"){ <text>block;</text> }else{ <text>none;</text> }">
							<li><a href="@Url.Action("Index", "Publication")">Liste des publications</a></li>
							<li><a href="@Url.Action("Create", "Publication")">Cr&eacute;er une publication</a></li>
						</ul>
					</li>
					<li><a href="@Url.Action("Index", "Comment")">Mod&eacute;ration des commentaires</a></li>
				</ul>
			</div>
			<div id="content">
        		@RenderBody()
			</div>
        </div>
		<script src="/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
		<script src="/Scripts/jquery-ui.min.js" type="text/javascript"></script>
		<script src="/Scripts/jquery-ui.colorpicker.js" type="text/javascript"></script>
		<script src="/Scripts/jquery.ui.datepicker-fr.js" type="text/javascript"></script>
		<script src="/Scripts/jquery-ui-1.8.9.custom.min.js" type="text/javascript"></script>
		<script src="/Scripts/jquery.validate.js" type="text/javascript"></script>
		<script src="/Scripts/jquery.validate.unobtrusive.js" type="text/javascript"></script>
        <script src="/Scripts/tiny_mce/jquery.tinymce.js" type="text/javascript"></script>
		<script type="text/javascript"><!--
			$(function(){
        		$('textarea').tinymce({
        			script_url : '/Scripts/tiny_mce/tiny_mce.js',
        			mode : "textareas",
            		theme : "advanced",
            		language : "fr",
            		plugins: "paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
            		theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,forecolor,backcolor,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo|,image,cleanup,",
            		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,code,fullscreen,help,",
            		theme_advanced_buttons3 : "",
            		theme_advanced_toolbar_location : "top",
            		theme_advanced_toolbar_align : "left",
            		theme_advanced_statusbar_location : "bottom",
            		theme_advanced_resizing : true
        		});
				$('.-datepicker').datepicker($.datepicker.regional["fr"]);
				$('.-filter legend').click(function(){ $(this).parent('.-filter').children('div').toggle(500); });
				$('input[type=submit]').click(function(){ tinyMCE.triggerSave(); });
				@(BastInfos.Helpers.JavaScriptHelper.Instance.Flush())
			});
		//-->
		</script>
    </body>
</html>